package com.example.chengzhong.entity;

import lombok.Data;

import java.time.Instant;
// 存储最近一次有效读数及时间戳
@Data
public class WeightRecord {
    Integer value;
    Instant timestamp;

    public WeightRecord(Integer value) {
        this.value = value;
        this.timestamp = Instant.now();
    }
}
